package calculadora;

public class Calculadora {

	
	
	
	private static Calculadora calculadora; 

	public static synchronized Calculadora getInstance() 
	{ 
		if (calculadora == null)
		{ 
			calculadora = new Calculadora(); 
		} 
	
		return calculadora; 
	} 

	private Calculadora(){ } 
	
	public int suma (int a, int b)
	{ 
		System.out.println("suma de "+a+" y "+b+" ");
		return a+b; 
	} 

	public int resta (int a, int b)
	{ 
		System.out.println("resta de "+a+" y "+b+" ");
		return a-b; 
	} 

	public int multiplicacion (int a, int b)
	{ 
		System.out.println("multiplicacion de "+a+" y "+b+" ");
		return a*b; 
	} 

	public double division (int a, int b)
	{ 
		System.out.println("division de "+a+" y "+b+" ");
		return a/b; 
	} 
	
	

}